package top.dotgo.web.base;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.dotgo.kit.ex.DotMsg;

/**
 * @author : lin
 * @date : 2019/9/27 15:10
 * 统一返回值格式
 */
@Getter
@Setter
@Accessors(chain = true)
public class Result<T> {

    private Integer code = DotMsg.SUCCESS_CODE;

    private String msg = DotMsg.SUCCESS_MSG;
    private T data;

}
